package com.base.mvp.base

/**
 * @author Administrator
 * @date 2018/1/24 0024 下午 1:36
 * GitHub：
 * email：
 * description：所有的Presenter需要继承这个Presenter
 */
abstract class BaseMvpPresenter<V : BaseMvpContract.View, out M : BaseMvpContract.Model> : BaseMvpContract.Presenter<V, M> {

    protected var mView: V? = null

    override fun bindView(view: V) {
        mView = view
    }

    override fun unbindView() {
        mView = null
    }
}